﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Server.TcpIp
{
    public class ClientStatus
    {
        /// <summary>
        /// True if the client authentified. Otherwise false
        /// </summary>
        private bool _isCorrect;
        /// <summary>
        /// Contains the id of the SensorConsumer module
        /// </summary>
        private string _id;

        /// <summary>
        /// Creates a client status object
        /// </summary>
        /// <param name="isCorrect">True if the client authentified. Otherwise false</param>
        public ClientStatus(string id, bool isCorrect)
        {
            _id = id;
            _isCorrect = isCorrect;
        }

        /// <summary>
        /// True if the client authentified. Otherwise false
        /// </summary>
        public bool IsCorrect
        {
            get { return _isCorrect; }
        }

        /// <summary>
        /// The ID of the module that sent the message
        /// </summary>
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }
    }
}
